-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix-Verify-Installed-Packages #44587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes package verification logic by changing the package name normalization from uppercase to lowercase, which aligns with Python packaging standards (PEP 503). It also improves error handling to prevent KeyError exceptions when packages are completely missing.
Key changes:
- Changed package name normalization from
.upper()to.lower()for both installed and expected package dictionaries - Updated error logging to use
.get()with a default value instead of direct dictionary access
|
/check-enforcer override |
mccoyp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The casing change is consistent for both sets being compared, and seems like it would possibly prevent the issue in your pipeline run. Change looks good to me
This reverts commit e4b5384.
…ation in latestdependencies (#44597) * Revert "Fix-Verify-Installed-Packages (#44587)" This reverts commit e4b5384. * fix: Apply PEP 503 package name normalization before verifying packages This resolves issues where packages, like ruamel.yaml, may appear under different names across the set of expected and installed package sets (e.g. `ruamel-yaml` and `ruamel.yaml`) despite both names referring to the same package per PEP 503.
This PR is created to fix Evaluation Release Pipeline. It's failing with following error.
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5729245&view=logs&j=a439c15f-05d2-526c-6deb-52d41b9c47ce&t=dc324d6b-dde8-5f75-c0a6-02068c86ab77&s=b49e7e65-b64b-557c-018e-3fd79c15ded6